<?php

return array(
    'controllers' => array(
        'invokables' => array(
            'Resgitration\Controller\Registration' => 'Registration\Controller\RegistrationController',
            'Resgitration\Controller\Api' => 'Registration\Controller\ApiController',
            'Resgitration\Controller\User' => 'Registration\Controller\UserController',
            'Resgitration\Controller\Auth' => 'Registration\Controller\AuthController',
            'Resgitration\Controller\Success' => 'Registration\Controller\SuccessController',
        ),
    ),
    'router' => array(
        'routes' => array(
            'registration' => array(
                'type' => 'segment',
                'options' => array(
                    'route' => '/registration[/:action][/:page]',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'page' => '[0-9]+',
                    ),
                    'defaults' => array(
                        'controller' => 'Resgitration\Controller\Registration',
                        'action' => 'index',
                    ),
                ),
            ),
            'user' => array(
                'type' => 'segment',
                'options' => array(
                    'route' => '/user[/:action][/:page]',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'page' => '[0-9]+',
                    ),
                    'defaults' => array(
                        'controller' => 'Resgitration\Controller\User',
                        'action' => 'index',
                    ),
                ),
            ),
            'login' => array(
                'type' => 'segment',
                'options' => array(
                    'route' => '/user/login[/:action]',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                    ),
                    'defaults' => array(
                        'controller' => 'Resgitration\Controller\Auth',
                        'action' => 'login',
                    ),
                ),
            ),
            'success' => array(
                'type' => 'segment',
                'options' => array(
                    'route' => '/user/success[/:action]',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                    ),
                    'defaults' => array(
                        'controller' => 'Resgitration\Controller\Success',
                        'action' => 'index',
                    ),
                ),
            ),
            'api' => array(
                'type' => 'segment',
                'options' => array(
                    'route' => '/api[/:action][/:position]',
                    'constraints' => array(
                        'position' => '[0-9]+',
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                    ),
                    'defaults' => array(
                        'controller' => 'Resgitration\Controller\Api',
                        'action' => 'index',
                    ),
                ),
            ),
        ),
    ),
    'view_manager' => array(
        'template_path_stack' => array(
            'registration' => __DIR__ . '/../view',
        ),
    ),
);
